| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Window.h
1 // Window.h
3 //
5
6 namespace nkWinUi
7 {
13 class Window : public Component
14 {
15 public :
16
24 Window (System* system) noexcept ;
28 virtual ~Window () ;
29
30 // Getters
34 virtual bool isMaximized () const ;
38 virtual bool isFullscreen () const ;
44 virtual HWND getHwnd () const ;
50 virtual nkMemory::String getCanvasId () const ;
51
52 // Setters
58 void setMouseLeaveCallback (std::function<void (Window*, nkMaths::Point)> callback) ;
64 void setResizeCallback (std::function<void (Window*)> callback) ;
70 void setNoBorder (bool value) ;
76 virtual void setIcon (const nkImages::ImageView& icon) = 0 ;
77
78 // Size
85 virtual void maximize (bool val, bool coverTaskBar = false) = 0 ;
86
87 // Import / Export
88 virtual void exportIntrospection (nkExport::Node* rootNode) override ;
89 virtual void importClassFromTree (nkExport::Node* rootNode) override ;
90
91 public :
92
93 // Statics
101 static nkMemory::UniquePtr<Window> create (System* system = nullptr) ;
102 } ;
103 }
nkWinUi::Window::maximize
virtual void maximize(bool val, bool coverTaskBar=false)=0
nkWinUi::Window::isFullscreen
virtual bool isFullscreen() const
nkWinUi::Window::isMaximized
virtual bool isMaximized() const
nkWinUi::Window::getHwnd
virtual HWND getHwnd() const
nkImages::ImageView
Holds all information required for an image, with no ownership over the data.
Definition: ImageView.h:14
nkWinUi::Window::setNoBorder
void setNoBorder(bool value)
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::Window::getCanvasId
virtual nkMemory::String getCanvasId() const
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkWinUi::Window::setMouseLeaveCallback
void setMouseLeaveCallback(std::function< void(Window *, nkMaths::Point)> callback)
nkWinUi::Window::Window
Window(System *system) noexcept
nkMaths::Point
Represents a 2D Point.
Definition: Point.h:12
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkMemory::String
Class holding information about a string, with ownership over the data.
Definition: String.h:22
nkWinUi::Window::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkWinUi::Window
A graphical window, made for general purpose.
Definition: Window.h:14
nkWinUi::Window::exportIntrospection
virtual void exportIntrospection(nkExport::Node *rootNode) override
nkWinUi::Window::setIcon
virtual void setIcon(const nkImages::ImageView &icon)=0
nkWinUi::Window::setResizeCallback
void setResizeCallback(std::function< void(Window *)> callback)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::Window::~Window
virtual ~Window()
nkWinUi::Window::create
static nkMemory::UniquePtr< Window > create(System *system=nullptr)